﻿@using FazaDemo.BL.InterfaceDomain
@using FazaDemo.BL.SubDomains
@using FazaDemo.ViewModels
@model NavElementViewModel

<tr>
    <td>
        @Html.LabelFor(model => model.ElemText, Model.ElemText, new { @class = "labStreet" })
    </td>
    <td>
        @Html.DropDownListFor(model => model.SelectedItemId, Model.NavDropItems, new { @class = "dropStreet" })
    </td>
    <td>
        @Html.TextBoxFor(model => model.ElemEdit, new { @class = "street" })
    </td>
    <td>
        @if (Model.HaveSuppInfo)
        {
            <button class="buttonSuppInfo" type="button" value="Справочная информация">
                СПР
            </button>
        }
    </td>
    <td>
        @foreach (var item in Enum.GetValues(typeof(Order)))
        {
            if ((Order)item != Order.Not)
            {
                <li>
                    @if ((Order)item == Order.Upper)
                    {
                        <label>В</label>
                    }
                    @if ((Order)item == Order.Lower)
                    {
                        <label>У</label>
                    }
                    @Html.RadioButtonFor(model => model.OrderCheck, item, "checked")

                </li>
            }
        }
    </td>
    <td>
        @Html.CheckBoxFor(model => model.IsShowView)
    </td>
</tr>

